//
// factorielle.cpp for 203poisson in /home/morel_t//Rendu/maths/203poisson
//
// Made by thomas morel
// Login   <morel_t@epitech.net>
//
// Started on  Tue Mar 13 09:22:23 2012 thomas morel
// Last update Tue Mar 20 18:12:09 2012 thomas morel
//

#include "203poisson.hh"

static double	fact(int number, double result)
{
  if (number == 0)
    return (result);
  else
    return (fact(number - 1, result * number));
}

double		factorial(int number)
{
  return (fact(number, 1));
}
